package com.xs.designs.adapter.demo2;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户服务
 * 
 * @author xiaomaoaixue
 */
@FeignClient(contextId = "remoteUserService")
public interface RemoteUserService
{
    @GetMapping(value = "/user/info/{username}")
    UserDTO2 getUserDetail(String username);
}
